import React, { useState } from 'react'

function Test(props) {
  console.log('test渲染了')
  const [x, setX] = useState('xxx')
  return (
    <div>
      test
      <p>{x}</p>
      <p>{props.count}</p>
      <button
        onClick={() => {
          setX('哈哈哈')
        }}
      >
        按钮
      </button>
    </div>
  )
}

export default React.memo(Test)
